from .base import *

__all__ = ['AnswerItem']


# 回答
class AnswerItem(BaseItem):
    item_type = 'answer'  # 类型
    commentNum = scrapy.Field()  # 评论数
    praiseNum = scrapy.Field()  # 点赞数
    uid = scrapy.Field()  # 用户ID
    parentId = scrapy.Field()  # 父uuid，所属问题ID

    def __init__(self):
        super().__init__()
        self['type'] = 'answer'
